import { createApp } from 'vue'
import App from './App.vue'

let app = createApp(App)

import router from '@/router'
app.use(router)

import store from "@/store/index"
app.use(store)

import components from '@/components'
app.use(components)

import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'
app.use(ElementPlus)
for (let iconName in ElementPlusIconsVue) {
    app.component(iconName, ElementPlusIconsVue[iconName])
}

//自定义指令
import Directives from '@/directive/index.js'
app.use(Directives)

import './theme/index.scss'

app.mount('#app')
